<?php

    include("header.php");

    setTabIndex(2);

    createPage("Liga - Zilveren Toren");

?>



<?php

    if ( isset($_GET['club_id']) == false ) {

		redirect("/tornooien/zt-php/zt_clubs.php");

    }



    $clubId = $_GET['club_id'];

	mysql_connect(DB_SERVER, DB_USER, DB_PWD);

	mysql_select_db(DB_CATALOG);

	$result = mysql_query("select * from zt_club_info where club_id = ".$clubId);

    $row = mysql_fetch_assoc($result);



    $result2 = mysql_query("select clubname from club where club_id = ".$clubId);

    $row2 = mysql_fetch_assoc($result2);



    $clubItem = new ZTClubInfo;

    $clubItem->club_id = $row['club_id'];

    $clubItem->clubname = $row2['clubname'];

	$clubItem->site = $row['site'];

	$clubItem->address = $row['address'];

	$clubItem->city = $row['city'];

	$clubItem->phone = $row['phone'];

	$clubItem->play_day = $row['play_day'];

	$clubItem->contact_name = $row['contact_name'];

	$clubItem->contact_address = $row['contact_address'];

	$clubItem->contact_city = $row['contact_city'];

	$clubItem->contact_phone = $row['contact_phone'];

	$clubItem->contact_email = $row['contact_email'];

?>



<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0" bgcolor="#FFFFFF">



	<tr>

		<td id="leftFiller" valign="top" height="100%" rowspan="3" bgcolor="#666666">

			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="8px">

				<tr><td>&nbsp;</td></tr>

			</table>

		</td>

		<td id="header" valign="top" width="100%">

			<table border="0" width="100%" cellpadding="3" cellspacing="0" bgcolor="#10425b">
                <tr>
                    <td bgcolor="#666666" width="40%">
                        <?php include("inc_title.html"); ?>
                    </td>
                    <td bgcolor="#666666" align="right" valign="top">&nbsp;
                          <span class="headerSmall">Huidige versie PLAYER.DBF: <?=CURRENT_PLAYER_DBF?>
                        <?php
                        if (isset($user) && $user->club_id == 100) {
                        ?>
                        <br/>
                        <a class="headerSmall" href="import_player.php">laad andere versie</a>
                        <?php
                        }
                        ?>
                        </span>
                    </td>
                </tr>
            </table>
            <table align="center" border="0" width="100%" height="90%" cellpadding="0" cellspacing="0" style="border-top:#BCDD10 4px solid;">
                <tr>
                    <?php include("inc_sublinks.php"); ?> 
                </tr>

				<tr><td colspan="2" nowrap bgcolor="#BCDD10" height="4"><img src="../../assets/images/spacer.gif" alt="" height="1" width="1"></td></tr>

				<tr>

					<td>&nbsp;</td>

					<td valign="top">

						<table align="left" cellspacing="10" width="100%">

							<tr>

								<td>

                                <span class="blackHeaderLarge">Zilveren Toren 2007 - Contactinfo '<?=$clubItem->clubname?>'</span>

								<br>

                                    <table width="90%" cellspacing="5" class="yellowBox">

                                        <tr style="background-color:#A6C218">

                                             <td colspan="2"><strong>Clubinformatie</strong></td>

                                    	</tr>

                                    	<tr>

                                    		<td width="30%"><strong>Nummer</strong></td>

                                    		<td><?=$clubItem->club_id?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Naam</strong></td>

                                    		<td><?=$clubItem->clubname?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Naam lokaal</strong></td>

                                    		<td><?=$clubItem->site?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Straatnaam + nr</strong></td>

                                    		<td><?=$clubItem->address?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Postcode + gemeente</strong></td>

                                    		<td><?=$clubItem->city?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Telefoon</strong></td>

                                    		<td><?=$clubItem->phone?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Speeldag</strong></td>

                                    		<td><?=$clubItem->play_day?></td>

                                    	</tr>

                                        <tr style="background-color:#A6C218">

                                             <td colspan="2"><strong>Ploegleiderinformatie</strong></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Naam</strong></td>

                                    		<td><?=$clubItem->contact_name?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Adres</strong></td>

                                    		<td><?=$clubItem->contact_address?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Gemeente</strong></td>

                                    		<td><?=$clubItem->contact_city?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>Telefoon</strong></td>

                                    		<td><?=$clubItem->contact_phone?></td>

                                    	</tr>

                                        <tr>

                                    		<td><strong>E-mail</strong></td>

                                    		<td><?=$clubItem->contact_email?></td>

                                    	</tr>

	                                </table>

								</td>

							</tr>

                            <tr>

								<td><a href="zt_clubs.php"><img border="0" src="../../assets/images/24x24/shadow/home.gif">

								<strong style="font-size:11px">Toon clubs</strong></a>

                                <?php

									if ( isset($user) && $user->club_id == $clubItem->club_id ) {

                                ?>

                                &nbsp;&nbsp;<a href="edit_club_info.php"><img src="../../assets/images/24x24/shadow/document.gif" border="0">

                                <strong style="font-size:11px">Wijzig de clubgegevens</strong></a>

                                <?php

                                	}

                                ?>

                                </td>

							</tr>

						</table>

					</td>

				</tr>

			</table>

		</td>

	</tr>

</table>



</body>

</html>

